package top.whq6.study.service.impl;

import top.whq6.study.dao.StudentDao;
import top.whq6.study.dao.impl.StudentDaoImpl;
import top.whq6.study.entity.Student;
import top.whq6.study.service.StudentService;

public class StudentServiceImpl implements StudentService {

  StudentDao studentDao;

  @Override
  public void add(Student s) {
    studentDao.addStu(s);
  }

  @Override
  public void del(int id) {
    studentDao.delStu(id);
  }

  @Override
  public void modify(Student s) {
    studentDao.modifyStu(s);
  }

  public void setStudentDao(StudentDaoImpl studentDao) {
    this.studentDao = studentDao;
  }
}
